import { lazy, LazyExoticComponent, FC } from 'react';

export interface RouteType {
  path: string;
  name?: string;
  title?: string;
  component: LazyExoticComponent<FC<{}>>;
  exact?: boolean;
  strict?: boolean;
  subRoutes?: Array<RouteType>;
  hasBottom?: boolean;
  withoutLogin?: boolean;
  openAccess?: boolean;
}

const routes: Array<RouteType> = [
  {
    path: '/',
    name: 'index',
    title: '首页',
    exact: true,
    component: lazy(() => import('pages/home'))
  },
  {
    path: '/list',
    name: 'list',
    title: '列表',
    exact: true,
    component: lazy(() => import('pages/home'))
  }
];
export { routes };
